package com.mt.restaurant.entity.material;

import javax.persistence.*;
import java.io.Serializable;
import com.mt.common.core.annotation.DColumn;
import com.mt.common.core.annotation.DEntity;
import com.mt.common.core.web.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;




@DEntity(label="成本管理",comment="",moduleLabel="原材料管理")
@Entity(name="restaurant_cost")
@Table(name = "restaurant_cost" , indexes = {   })
@ApiModel(description = "成本管理:")
public class Cost extends BaseEntity implements Serializable{
	private static final long serialVersionUID = 1L;

	@DColumn(index=3,label="业务id",comment="对应数据Id",component="数字，整数",where=false)
	@ApiModelProperty(value = "业务id:对应数据Id")
	@Column(name="business_id",length=255,nullable=true,unique=false)
	private Long businessId;

	@DColumn(index=4,label="实体名称",comment="对应实体名称",component="文本",where=false)
	@ApiModelProperty(value = "实体名称:对应实体名称")
	@Column(name="entity_name",length=255,nullable=true,unique=false)
	private String entityName;

	@DColumn(index=5,label="成本类型",comment="",component="文本",where=false)
	@ApiModelProperty(value = "成本类型:")
	@Column(name="type",length=255,nullable=false,unique=false)
	private String type;

	@DColumn(index=6,label="数量",comment="",component="数字，小数",where=false)
	@ApiModelProperty(value = "数量:")
	@Column(name="amount",length=255,nullable=true,unique=false)
	private Double amount;

	@DColumn(index=7,label="单价",comment="",component="数字，小数",where=false)
	@ApiModelProperty(value = "单价:")
	@Column(name="price",length=255,nullable=true,unique=false)
	private Double price;

	@DColumn(index=8,label="总价",comment="",component="数字，小数",where=false)
	@ApiModelProperty(value = "总价:")
	@Column(name="total",length=255,nullable=true,unique=false)
	private Double total;

	public Double getTotal() {
		return total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}

	public Long getBusinessId() {
		return this.businessId;
	}

	public void setBusinessId(Long businessId) {
		this.businessId = businessId;
	}

	public String getEntityName() {
		return this.entityName;
	}

	public void setEntityName(String entityName) {
		this.entityName = entityName;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Double getAmount() {
		return this.amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}



}
